﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TTEditor.Project
{
    public class Path : ITTSelectObject
    {
        public string Name
        {
            get;
            set;
        }
        public Path[] paths;
        public File[] files;
        public Path DeepClone()
        {
            Path n = new Path();
            n.Name = this.Name;
            n.files = new File[this.files.Length];
            for (var i = 0; i < this.files.Length; i++)
            {
                n.files[i] = this.files[i].DeepClone();
            }
            n.paths = new Path[this.paths.Length];
            for (var i = 0; i < this.paths.Length; i++)
            {
                n.paths[i] = this.paths[i].DeepClone();
            }
            return n;
        }
    }
    public class File : ITTSelectObject
    {
        public string Name
        {
            get;
            set;
        }
        public string fullname;
        public File DeepClone()
        {
            File f = new File();
            f.Name = this.Name;
            f.fullname = this.fullname;
            return f;
        }
    }
}
